<?php
return array(
    'ModuleItem' => array(
        'table'          => 'module_item',
        'columns'        => array('itemId', 'userId', 'itemDefId', 'type', 'freeCount', 'purchasedCount', 'commodityValue', 'expireTime', 'updateTime'),
        'autoIncrColumn' => 0,
        'diffUpColumns'  => array(4, 5, 6), // difference update columns
        'updateFilter'   => array(0, 1, 2, 3),
        'toArrayFilter'  => array(),
        'searchColumns'  => array(0, 1, 2, 3),
        'updateColumns'  => array(0),
        'jsonColumns'    => array(),
        'cacheColumn'    => 1,
        'shardColumn'    => 1,
        'pkColumn'       => 0,
        'deleteColumns'  => array(0),
        'tableShardCount'=> -1,
        'isList'         => true,
        'dbType'         => 'MySql',
        'cacheTime'      => 259200, // 3 days
    ),
    'ModuleItemVolume' => array(
        'table'          => 'module_item_volume',
        'columns'        => array('userId', 'gridId'),
        'autoIncrColumn' => null,
        'diffUpColumns'  => array(),
        'updateFilter'   => array(0),
        'toArrayFilter'  => array(),
        'searchColumns'  => array(0),
        'updateColumns'  => array(0),
        'jsonColumns'    => array(),
        'cacheColumn'    => 0,
        'shardColumn'    => 0,
        'pkColumn'       => 0,
        'deleteColumns'  => array(0),
        'tableShardCount'=> -1,
        'isList'         => false,
        'dbType'         => 'MySql',
        'cacheTime'      => 259200, // 3 days
    ),
    'ModuleItemDurationLog' => array(
        'table'          => 'duration_item_log',
        'columns'        => array('id', 'uid', 'itemid', 'c_time', 'expire_time', 'c_value'),
        'autoIncrColumn' => 0,
        'diffUpColumns'  => array(),
        'updateFilter'   => array(0, 1),
        'toArrayFilter'  => array(),
        'searchColumns'  => array(0, 1),
        'updateColumns'  => array(0, 1),
        'jsonColumns'    => array(),
        'cacheColumn'    => 1,
        'shardColumn'    => 1,
        'pkColumn'       => 0,
        'deleteColumns'  => array(0),
        'tableShardCount'=> -1,
        'isList'         => true,
        'dbType'         => 'MySql',
        'cacheTime'      => 259200, // 3 days
    ),
);